import Vue from 'vue'
import App from './App'
import config from '@/config.js'
import store from '@/store'
import Gps from '@/uni_modules/json-gps/js_sdk/gps.js';

Vue.config.productionTip = false
App.mpType = 'app'
Vue.prototype.$ossDomain = config.OSS_DOMAIN;
Vue.prototype.$gps = new Gps()
Vue.prototype.$appConfig = config;

let vuexStore = require("@/store/$u.mixin.js");
Vue.mixin(vuexStore);

// 引入uView
import uView from 'uview-ui'
Vue.use(uView);




const app = new Vue({
	store,
	...App
})

// 引入uView对小程序分享的mixin封装
let mpShare = require('uview-ui/libs/mixin/mpShare.js');
Vue.mixin(mpShare);

// http拦截器
import httpInterceptor from '@/utils/http.interceptor.js'
Vue.use(httpInterceptor, app)

// http接口API集中管理
import httpApi from '@/utils/http.api.js'
Vue.use(httpApi, app)

// 路由拦截器
import "@/utils/utils.js"

app.$mount()